@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/activity/activity_edit.js"]}){
<form id="activityForm" lay-filter="activityForm" class="layui-form model-form layui-row">
    <input name="id" id="activityId" type="hidden"/>
    <div class="layui-col-lg12">
        <div class="layui-form-item">
            <label class="layui-form-label">图片</label>
            <div class="layui-input-block" id="pic_big">

            </div>
        </div>
    </div>
    <div class="layui-col-lg6 layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label">活动名称<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="title" name="title" placeholder="请输入活动名称" type="text" class="layui-input" lay-verify="required" required />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">奖品数量</label>
            <div class="layui-input-block">
                <input id="amount" name="amount" placeholder="请输入产品数量" type="number" min="1" max="99999" class="layui-input" lay-verify="required" required  />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发布人<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="adminName" name="adminName" placeholder="发布人" type="text" class="layui-input" disabled/>
            </div>
        </div>
       <!-- <div class="layui-form-item">
            <label class="layui-form-label">点赞数<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="praise" name="praise" placeholder="请输入点赞数" type="text" class="layui-input" lay-verify="required" required/>
            </div>

        </div>-->

        <div class="layui-form-item">
            <label class="layui-form-label">评论数<span style="color: red;">*</span></label>
            <div class="layui-input-inline">
                <input id="commentCount" name="commentCount"  type="text" class="layui-input"  disabled/>
            </div>
            <div class="layui-input-inline">
                <button class="layui-btn" type="button" id="commentBtn" lay-submit>查看评论</button>
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">浏览量<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="watch" name="watch" placeholder="请输入浏览量" type="text" class="layui-input" disabled/>
            </div>
        </div>


        <div class="layui-form-item" id="rewardWayBox" >
            <label class="layui-form-label">奖励方式<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="rewardWay" name="rewardWay" placeholder="请输入奖励方式" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否显示奖励名单<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input type="checkbox" id="swRewardList" name="swRewardList" lay-filter="swRewardList" value="1" lay-skin="switch"  lay-text="开|关"  />

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否显示作品<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input type="checkbox" id="swReport" name="swReport" lay-filter="swReport" value="1" lay-skin="switch"  lay-text="开|关"  />
            </div>
        </div>
    </div>
    <div class="layui-col-lg6 layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label">开始投稿时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="beginSubmissionTime" name="beginSubmissionTime" placeholder="请输入开始投稿时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束投稿时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="endSubmissionTime" name="endSubmissionTime" placeholder="请输入结束投稿时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开始评选时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="beginApplyTime" name="beginApplyTime" placeholder="请输入开始报名时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">结束评选时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="endApplyTime" name="endApplyTime" placeholder="请输入结束报名时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">活动结束时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="activityEndTime" name="activityEndTime" placeholder="请输入活动结束时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">投稿人数</label>
            <div class="layui-input-inline">
                <input id="workCount" name="workCount"  type="text" class="layui-input" disabled />
            </div>
            <div class="layui-input-inline">
                <button class="layui-btn" type="button" id="workBtn" lay-submit>投稿作品</button>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">获奖名单</label>
            <div class="layui-input-inline">
                <input id="rewardCount" name="rewardCount"  type="text" class="layui-input"  disabled/>
            </div>
            <div class="layui-input-inline">
                <button class="layui-btn" type="button" id="rewardBtn" lay-submit>获奖人员</button>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标识<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <select name="mark"  id="mark"
                        @if(!shiro.isAdmin()){
                        disabled
                        @}
                >
                    <option value="">无</option>
                    <option value="1">置顶</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">活动状态<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <select id="status" name="status"
                        @if(!shiro.isAdmin()){
                        disabled
                        @}
                >
                    <!--<option value="">全部</option>
                    <option value="1">待发布</option>
                    <option value="2">投稿中</option>
                    <option value="3">截止投稿</option>
                    <option value="4">评选中</option>
                    <option value="5">评选结束</option>-->
                    <option value="">未结束</option>
                    <option value="6">活动结束</option>
                    <option value="7">活动下线</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">新增时间<span style="color: red;">*</span></label>
            <div class="layui-input-block">
                <input id="createTime" name="createTime" placeholder="请输入新增时间" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <blockquote  style="text-align: center">
            活动详情
        </blockquote>
        <div>
            <div id="description_toolbar" class="toolbar">
            </div>
            <div id="description_text" class="text" style="height: 400px;border: 1px solid seagreen">
            </div>
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
    </div>
</form>
@}